home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / Developer Essentials Jul 90 / DTS Sample Code / Macintosh Sample Code / Monthly Releases (Compressed) / MacDTS.Sample.Code.90.02.sit / SC.019.TEStyleSample / TEStyleSample.h < prev    next >
MacBinary  |  1989-10-01  |  11.0 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sun Oct 1 00:00:00 1989, modified Sun Oct 1 00:00:00 1989, creator 'MPS ', type ASCII, 10638 bytes "TEStyleSample.h" , at 0x2a0e 315 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0f 54 45 53 74 79 6c | 65 53 61 6d 70 6c 65 2e |..TEStyl|eSample.|
|00000010| 68 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |h.......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 29 8e 00 | 00 01 3b a1 4b 3c 40 a1 |.....)..|..;.K<@.|
|00000060| 4b 3c 40 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |K<@.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 a9 5c 00 00 |........|.....\..|
|00000080| 2f 2a 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |/*------|--------|
|00000090| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000d0| 0d 23 0d 23 09 41 70 70 | 6c 65 20 4d 61 63 69 6e |.#.#.App|le Macin|
|000000e0| 74 6f 73 68 20 44 65 76 | 65 6c 6f 70 65 72 20 54 |tosh Dev|eloper T|
|000000f0| 65 63 68 6e 69 63 61 6c | 20 53 75 70 70 6f 72 74 |echnical| Support|
|00000100| 0d 23 0d 23 09 4d 75 6c | 74 69 46 69 6e 64 65 72 |.#.#.Mul|tiFinder|
|00000110| 2d 41 77 61 72 65 20 53 | 74 79 6c 65 64 20 54 65 |-Aware S|tyled Te|
|00000120| 78 74 45 64 69 74 20 53 | 61 6d 70 6c 65 20 41 70 |xtEdit S|ample Ap|
|00000130| 70 6c 69 63 61 74 69 6f | 6e 0d 23 0d 23 09 54 45 |plicatio|n.#.#.TE|
|00000140| 53 74 79 6c 65 53 61 6d | 70 6c 65 0d 23 0d 23 09 |StyleSam|ple.#.#.|
|00000150| 54 45 53 74 79 6c 65 53 | 61 6d 70 6c 65 2e 68 09 |TEStyleS|ample.h.|
|00000160| 2d 09 52 65 7a 20 53 6f | 75 72 63 65 0d 23 0d 23 |-.Rez So|urce.#.#|
|00000170| 09 43 6f 70 79 72 69 67 | 68 74 20 a9 20 31 39 38 |.Copyrig|ht . 198|
|00000180| 39 20 41 70 70 6c 65 20 | 43 6f 6d 70 75 74 65 72 |9 Apple |Computer|
|00000190| 2c 20 49 6e 63 2e 0d 23 | 09 41 6c 6c 20 72 69 67 |, Inc..#|.All rig|
|000001a0| 68 74 73 20 72 65 73 65 | 72 76 65 64 2e 0d 23 0d |hts rese|rved..#.|
|000001b0| 23 09 56 65 72 73 69 6f | 6e 73 3a 09 31 2e 30 09 |#.Versio|ns:.1.0.|
|000001c0| 09 09 09 09 09 31 30 2f | 38 39 0d 23 0d 23 09 43 |.....10/|89.#.#.C|
|000001d0| 6f 6d 70 6f 6e 65 6e 74 | 73 3a 09 54 45 53 74 79 |omponent|s:.TESty|
|000001e0| 6c 65 53 61 6d 70 6c 65 | 2e 70 09 09 09 4f 63 74 |leSample|.p...Oct|
|000001f0| 6f 62 65 72 09 31 2c 20 | 31 39 38 39 0d 23 09 09 |ober.1, |1989.#..|
|00000200| 09 09 54 45 53 74 79 6c | 65 53 61 6d 70 6c 65 47 |..TEStyl|eSampleG|
|00000210| 6c 75 65 2e 61 09 09 4f | 63 74 6f 62 65 72 09 31 |lue.a..O|ctober.1|
|00000220| 2c 20 31 39 38 39 0d 23 | 09 09 09 09 54 45 53 74 |, 1989.#|....TESt|
|00000230| 79 6c 65 53 61 6d 70 6c | 65 2e 72 09 09 09 4f 63 |yleSampl|e.r...Oc|
|00000240| 74 6f 62 65 72 09 31 2c | 20 31 39 38 39 0d 23 09 |tober.1,| 1989.#.|
|00000250| 09 09 09 54 45 53 74 79 | 6c 65 53 61 6d 70 6c 65 |...TESty|leSample|
|00000260| 2e 68 09 09 09 4f 63 74 | 6f 62 65 72 09 31 2c 20 |.h...Oct|ober.1, |
|00000270| 31 39 38 39 0d 23 09 09 | 09 09 50 54 45 53 74 79 |1989.#..|..PTESty|
|00000280| 6c 65 53 61 6d 70 6c 65 | 2e 6d 61 6b 65 09 09 4f |leSample|.make..O|
|00000290| 63 74 6f 62 65 72 09 31 | 2c 20 31 39 38 39 0d 23 |ctober.1|, 1989.#|
|000002a0| 0d 23 09 54 45 53 74 79 | 6c 65 53 61 6d 70 6c 65 |.#.TESty|leSample|
|000002b0| 20 69 73 20 61 6e 20 65 | 78 61 6d 70 6c 65 20 61 | is an e|xample a|
|000002c0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 74 68 61 74 20 |pplicati|on that |
|000002d0| 64 65 6d 6f 6e 73 74 72 | 61 74 65 73 20 68 6f 77 |demonstr|ates how|
|000002e0| 20 0d 23 09 74 6f 20 69 | 6e 69 74 69 61 6c 69 7a | .#.to i|nitializ|
|000002f0| 65 20 74 68 65 20 63 6f | 6d 6d 6f 6e 6c 79 20 75 |e the co|mmonly u|
|00000300| 73 65 64 20 74 6f 6f 6c | 62 6f 78 20 6d 61 6e 61 |sed tool|box mana|
|00000310| 67 65 72 73 2c 20 6f 70 | 65 72 61 74 65 20 0d 23 |gers, op|erate .#|
|00000320| 09 73 75 63 63 65 73 73 | 66 75 6c 6c 79 20 75 6e |.success|fully un|
|00000330| 64 65 72 20 4d 75 6c 74 | 69 46 69 6e 64 65 72 2c |der Mult|iFinder,|
|00000340| 20 68 61 6e 64 6c 65 20 | 64 65 73 6b 20 61 63 63 | handle |desk acc|
|00000350| 65 73 73 6f 72 69 65 73 | 20 61 6e 64 20 0d 23 09 |essories| and .#.|
|00000360| 63 72 65 61 74 65 2c 20 | 67 72 6f 77 2c 20 61 6e |create, |grow, an|
|00000370| 64 20 7a 6f 6f 6d 20 77 | 69 6e 64 6f 77 73 2e 20 |d zoom w|indows. |
|00000380| 42 6f 74 68 20 73 74 79 | 6c 65 64 20 61 6e 64 20 |Both sty|led and |
|00000390| 66 75 6e 64 61 6d 65 6e | 74 61 6c 20 54 65 78 74 |fundamen|tal Text|
|000003a0| 45 64 69 74 20 0d 23 09 | 74 6f 6f 6c 62 6f 78 20 |Edit .#.|toolbox |
|000003b0| 63 61 6c 6c 73 20 61 6e | 64 20 54 65 78 74 45 64 |calls an|d TextEd|
|000003c0| 69 74 20 61 75 74 6f 73 | 63 72 6f 6c 6c 20 61 72 |it autos|croll ar|
|000003d0| 65 20 64 65 6d 6f 6e 73 | 74 72 61 74 65 64 2e 20 |e demons|trated. |
|000003e0| 49 74 20 0d 23 09 61 6c | 73 6f 20 73 68 6f 77 73 |It .#.al|so shows|
|000003f0| 20 68 6f 77 20 74 6f 20 | 63 72 65 61 74 65 20 61 | how to |create a|
|00000400| 6e 64 20 6d 61 69 6e 74 | 61 69 6e 20 73 63 72 6f |nd maint|ain scro|
|00000410| 6c 6c 62 61 72 20 63 6f | 6e 74 72 6f 6c 73 20 61 |llbar co|ntrols a|
|00000420| 73 20 77 65 6c 6c 0d 23 | 09 61 73 20 69 6d 70 6c |s well.#|.as impl|
|00000430| 65 6d 65 6e 74 69 6e 67 | 20 61 20 62 61 73 69 63 |ementing| a basic|
|00000440| 20 70 72 69 6e 74 69 6e | 67 20 6c 6f 6f 70 2e 0d | printin|g loop..|
|00000450| 23 0d 23 09 49 74 20 64 | 6f 65 73 20 6e 6f 74 20 |#.#.It d|oes not |
|00000460| 62 79 20 61 6e 79 20 6d | 65 61 6e 73 20 64 65 6d |by any m|eans dem|
|00000470| 6f 6e 73 74 72 61 74 65 | 20 61 6c 6c 20 74 68 65 |onstrate| all the|
|00000480| 20 74 65 63 68 6e 69 71 | 75 65 73 20 79 6f 75 20 | techniq|ues you |
|00000490| 0d 23 09 6e 65 65 64 20 | 66 6f 72 20 61 20 6c 61 |.#.need |for a la|
|000004a0| 72 67 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 2e |rge appl|ication.|
|000004b0| 20 49 6e 20 70 61 72 74 | 69 63 75 6c 61 72 2c 20 | In part|icular, |
|000004c0| 54 45 53 74 79 6c 65 53 | 61 6d 70 6c 65 20 64 6f |TEStyleS|ample do|
|000004d0| 65 73 20 6e 6f 74 20 0d | 23 09 63 6f 76 65 72 20 |es not .|#.cover |
|000004e0| 65 78 63 65 70 74 69 6f | 6e 20 68 61 6e 64 6c 69 |exceptio|n handli|
|000004f0| 6e 67 2c 20 6d 75 6c 74 | 69 70 6c 65 20 77 69 6e |ng, mult|iple win|
|00000500| 64 6f 77 73 2f 64 6f 63 | 75 6d 65 6e 74 73 2c 20 |dows/doc|uments, |
|00000510| 0d 23 09 73 6f 70 68 69 | 73 74 69 63 61 74 65 64 |.#.sophi|sticated|
|00000520| 20 6d 65 6d 6f 72 79 20 | 6d 61 6e 61 67 65 6d 65 | memory |manageme|
|00000530| 6e 74 2c 20 6f 72 20 75 | 6e 64 6f 2e 20 41 6c 6c |nt, or u|ndo. All|
|00000540| 20 6f 66 20 0d 23 09 74 | 68 65 73 65 20 61 72 65 | of .#.t|hese are|
|00000550| 20 76 69 74 61 6c 20 70 | 61 72 74 73 20 6f 66 20 | vital p|arts of |
|00000560| 61 20 6e 6f 72 6d 61 6c | 20 66 75 6c 6c 2d 73 69 |a normal| full-si|
|00000570| 7a 65 64 20 61 70 70 6c | 69 63 61 74 69 6f 6e 2e |zed appl|ication.|
|00000580| 0d 23 0d 23 09 54 68 69 | 73 20 61 70 70 6c 69 63 |.#.#.Thi|s applic|
|00000590| 61 74 69 6f 6e 20 69 73 | 20 61 6e 20 65 78 61 6d |ation is| an exam|
|000005a0| 70 6c 65 20 6f 66 20 74 | 68 65 20 66 6f 72 6d 20 |ple of t|he form |
|000005b0| 6f 66 20 61 20 4d 61 63 | 69 6e 74 6f 73 68 20 0d |of a Mac|intosh .|
|000005c0| 23 09 61 70 70 6c 69 63 | 61 74 69 6f 6e 3b 20 69 |#.applic|ation; i|
|000005d0| 74 20 69 73 20 4e 4f 54 | 20 61 20 74 65 6d 70 6c |t is NOT| a templ|
|000005e0| 61 74 65 2e 20 49 74 20 | 69 73 20 4e 4f 54 20 69 |ate. It |is NOT i|
|000005f0| 6e 74 65 6e 64 65 64 20 | 74 6f 20 62 65 20 0d 23 |ntended |to be .#|
|00000600| 09 75 73 65 64 20 61 73 | 20 61 20 66 6f 75 6e 64 |.used as| a found|
|00000610| 61 74 69 6f 6e 20 66 6f | 72 20 74 68 65 20 6e 65 |ation fo|r the ne|
|00000620| 78 74 20 77 6f 72 6c 64 | 2d 63 6c 61 73 73 2c 20 |xt world|-class, |
|00000630| 62 65 73 74 2d 73 65 6c | 6c 69 6e 67 2c 20 0d 23 |best-sel|ling, .#|
|00000640| 09 36 30 30 4b 20 61 70 | 70 6c 69 63 61 74 69 6f |.600K ap|plicatio|
|00000650| 6e 2e 20 41 20 73 74 69 | 63 6b 20 66 69 67 75 72 |n. A sti|ck figur|
|00000660| 65 20 64 72 61 77 69 6e | 67 20 6f 66 20 74 68 65 |e drawin|g of the|
|00000670| 20 68 75 6d 61 6e 20 62 | 6f 64 79 20 6d 61 79 20 | human b|ody may |
|00000680| 0d 23 09 62 65 20 61 20 | 67 6f 6f 64 20 65 78 61 |.#.be a |good exa|
|00000690| 6d 70 6c 65 20 6f 66 20 | 74 68 65 20 66 6f 72 6d |mple of |the form|
|000006a0| 20 66 6f 72 20 61 20 70 | 61 69 6e 74 69 6e 67 2c | for a p|ainting,|
|000006b0| 20 62 75 74 20 74 68 61 | 74 20 64 6f 65 73 20 6e | but tha|t does n|
|000006c0| 6f 74 20 0d 23 09 6d 65 | 61 6e 20 69 74 20 73 68 |ot .#.me|an it sh|
|000006d0| 6f 75 6c 64 20 62 65 20 | 75 73 65 64 20 61 73 20 |ould be |used as |
|000006e0| 74 68 65 20 62 61 73 69 | 73 20 66 6f 72 20 74 68 |the basi|s for th|
|000006f0| 65 20 6e 65 78 74 20 4d | 6f 6e 61 20 4c 69 73 61 |e next M|ona Lisa|
|00000700| 2e 0d 23 0d 23 09 57 65 | 20 72 65 63 6f 6d 6d 65 |..#.#.We| recomme|
|00000710| 6e 64 20 74 68 61 74 20 | 79 6f 75 20 72 65 76 69 |nd that |you revi|
|00000720| 65 77 20 74 68 69 73 20 | 70 72 6f 67 72 61 6d 2c |ew this |program,|
|00000730| 20 54 45 53 61 6d 70 6c | 65 20 6f 72 20 53 61 6d | TESampl|e or Sam|
|00000740| 70 6c 65 20 62 65 66 6f | 72 65 20 0d 23 09 62 65 |ple befo|re .#.be|
|00000750| 67 69 6e 6e 69 6e 67 20 | 61 20 6e 65 77 20 61 70 |ginning |a new ap|
|00000760| 70 6c 69 63 61 74 69 6f | 6e 2e 20 54 45 53 61 6d |plicatio|n. TESam|
|00000770| 70 6c 65 20 69 73 20 61 | 20 73 69 6d 70 6c 65 72 |ple is a| simpler|
|00000780| 20 76 65 72 73 69 6f 6e | 20 6f 66 20 54 45 53 74 | version| of TESt|
|00000790| 79 6c 65 53 61 6d 70 6c | 65 0d 23 09 77 69 74 68 |yleSampl|e.#.with|
|000007a0| 6f 75 74 20 73 74 79 6c | 65 73 20 61 6e 64 20 53 |out styl|es and S|
|000007b0| 61 6d 70 6c 65 20 69 73 | 20 61 20 73 69 6d 70 6c |ample is| a simpl|
|000007c0| 65 20 61 70 70 2e 20 77 | 68 69 63 68 20 64 6f 65 |e app. w|hich doe|
|000007d0| 73 6e d5 74 20 0d 23 09 | 75 73 65 20 54 65 78 74 |sn.t .#.|use Text|
|000007e0| 45 64 69 74 20 6f 72 20 | 74 68 65 20 43 6f 6e 74 |Edit or |the Cont|
|000007f0| 72 6f 6c 20 4d 61 6e 61 | 67 65 72 2e 0d 23 0d 2d |rol Mana|ger..#.-|
|00000800| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000810| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000820| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000830| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000840| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2a 2f 0d |--------|-----*/.|
|00000850| 0d 2f 2a 09 54 68 65 73 | 65 20 23 64 65 66 69 6e |./*.Thes|e #defin|
|00000860| 65 73 20 63 6f 72 72 65 | 73 70 6f 6e 64 20 74 6f |es corre|spond to|
|00000870| 20 76 61 6c 75 65 73 20 | 69 6e 20 74 68 65 20 50 | values |in the P|
|00000880| 61 73 63 61 6c 20 73 6f | 75 72 63 65 20 63 6f 64 |ascal so|urce cod|
|00000890| 65 2e 0d 09 54 45 53 74 | 79 6c 65 53 61 6d 70 6c |e...TESt|yleSampl|
|000008a0| 65 2e 63 20 61 6e 64 20 | 54 45 53 74 79 6c 65 53 |e.c and |TEStyleS|
|000008b0| 61 6d 70 6c 65 2e 72 20 | 69 6e 63 6c 75 64 65 20 |ample.r |include |
|000008c0| 74 68 69 73 20 66 69 6c | 65 2e 20 2a 2f 0d 0d 2f |this fil|e. */../|
|000008d0| 2a 09 44 65 74 65 72 6d | 69 6e 69 6e 67 20 61 6e |*.Determ|ining an|
|000008e0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 27 73 20 6d | applica|tion's m|
|000008f0| 69 6e 69 6d 75 6d 20 73 | 69 7a 65 20 74 6f 20 72 |inimum s|ize to r|
|00000900| 65 71 75 65 73 74 20 66 | 72 6f 6d 20 4d 75 6c 74 |equest f|rom Mult|
|00000910| 69 46 69 6e 64 65 72 20 | 64 65 70 65 6e 64 73 0d |iFinder |depends.|
|00000920| 09 6f 6e 20 6d 61 6e 79 | 20 74 68 69 6e 67 73 2c |.on many| things,|
|00000930| 20 65 61 63 68 20 6f 66 | 20 77 68 69 63 68 20 63 | each of| which c|
|00000940| 61 6e 20 62 65 20 75 6e | 69 71 75 65 20 74 6f 20 |an be un|ique to |
|00000950| 61 6e 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 27 73 |an appli|cation's|
|00000960| 20 66 75 6e 63 74 69 6f | 6e 2c 0d 09 74 68 65 20 | functio|n,..the |
|00000970| 61 6e 74 69 63 69 70 61 | 74 65 64 20 65 6e 76 69 |anticipa|ted envi|
|00000980| 72 6f 6e 6d 65 6e 74 2c | 20 74 68 65 20 64 65 76 |ronment,| the dev|
|00000990| 65 6c 6f 70 65 72 27 73 | 20 61 74 74 69 74 75 64 |eloper's| attitud|
|000009a0| 65 20 6f 66 20 77 68 61 | 74 20 63 6f 6e 73 74 69 |e of wha|t consti|
|000009b0| 74 75 74 65 73 0d 09 72 | 65 61 73 6f 6e 61 62 6c |tutes..r|easonabl|
|000009c0| 65 20 66 75 6e 63 74 69 | 6f 6e 61 6c 69 74 79 20 |e functi|onality |
|000009d0| 61 6e 64 20 70 65 72 66 | 6f 72 6d 61 6e 63 65 2c |and perf|ormance,|
|000009e0| 20 65 74 63 2e 20 48 65 | 72 65 20 69 73 20 61 20 | etc. He|re is a |
|000009f0| 6c 69 73 74 20 6f 66 20 | 73 6f 6d 65 20 74 68 69 |list of |some thi|
|00000a00| 6e 67 73 20 74 6f 0d 09 | 63 6f 6e 73 69 64 65 72 |ngs to..|consider|
|00000a10| 20 77 68 65 6e 20 64 65 | 74 65 72 6d 69 6e 69 6e | when de|terminin|
|00000a20| 67 20 74 68 65 20 6d 69 | 6e 69 6d 75 6d 20 73 69 |g the mi|nimum si|
|00000a30| 7a 65 20 28 61 6e 64 20 | 70 72 65 66 65 72 72 65 |ze (and |preferre|
|00000a40| 64 20 73 69 7a 65 29 20 | 66 6f 72 20 79 6f 75 72 |d size) |for your|
|00000a50| 0d 09 61 70 70 6c 69 63 | 61 74 69 6f 6e 2e 20 54 |..applic|ation. T|
|00000a60| 68 65 20 6c 69 73 74 20 | 69 73 20 70 72 65 74 74 |he list |is prett|
|00000a70| 79 20 6d 75 63 68 20 69 | 6e 20 6f 72 64 65 72 20 |y much i|n order |
|00000a80| 6f 66 20 69 6d 70 6f 72 | 74 61 6e 63 65 2c 20 62 |of impor|tance, b|
|00000a90| 75 74 20 62 79 20 6e 6f | 20 6d 65 61 6e 73 0d 09 |ut by no| means..|
|00000aa0| 63 6f 6d 70 6c 65 74 65 | 2e 0d 09 0d 09 31 2e 09 |complete|.....1..|
|00000ab0| 57 68 61 74 20 69 73 20 | 74 68 65 20 6d 69 6e 69 |What is |the mini|
|00000ac0| 6d 75 6d 20 73 69 7a 65 | 20 6e 65 65 64 65 64 20 |mum size| needed |
|00000ad0| 74 6f 20 67 69 76 65 20 | 61 6c 6d 6f 73 74 20 31 |to give |almost 1|
|00000ae0| 30 30 20 70 65 72 63 65 | 6e 74 20 61 73 73 75 72 |00 perce|nt assur|
|00000af0| 61 6e 63 65 0d 09 09 74 | 68 61 74 20 74 68 65 20 |ance...t|hat the |
|00000b00| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 77 6f 6e 27 |applicat|ion won'|
|00000b10| 74 20 63 72 61 73 68 20 | 62 65 63 61 75 73 65 20 |t crash |because |
|00000b20| 69 74 20 72 61 6e 20 6f | 75 74 20 6f 66 20 6d 65 |it ran o|ut of me|
|00000b30| 6d 6f 72 79 3f 20 54 68 | 69 73 0d 09 09 69 6e 63 |mory? Th|is...inc|
|00000b40| 6c 75 64 65 73 20 6e 6f | 74 20 6f 6e 6c 79 20 74 |ludes no|t only t|
|00000b50| 68 69 6e 67 73 20 74 68 | 61 74 20 79 6f 75 20 64 |hings th|at you d|
|00000b60| 6f 20 68 61 76 65 20 64 | 69 72 65 63 74 20 63 6f |o have d|irect co|
|00000b70| 6e 74 72 6f 6c 20 6f 76 | 65 72 20 73 75 63 68 20 |ntrol ov|er such |
|00000b80| 61 73 0d 09 09 63 68 65 | 63 6b 69 6e 67 20 66 6f |as...che|cking fo|
|00000b90| 72 20 4e 49 4c 20 68 61 | 6e 64 6c 65 73 20 61 6e |r NIL ha|ndles an|
|00000ba0| 64 20 70 6f 69 6e 74 65 | 72 73 2c 20 62 75 74 20 |d pointe|rs, but |
|00000bb0| 61 6c 73 6f 20 74 68 69 | 6e 67 73 20 74 68 61 74 |also thi|ngs that|
|00000bc0| 20 73 6f 6d 65 0d 09 09 | 66 65 65 6c 20 61 72 65 | some...|feel are|
|00000bd0| 20 6e 6f 74 20 73 6f 20 | 6d 75 63 68 20 75 6e 64 | not so |much und|
|00000be0| 65 72 20 74 68 65 69 72 | 20 63 6f 6e 74 72 6f 6c |er their| control|
|00000bf0| 20 73 75 63 68 20 61 73 | 20 51 75 69 63 6b 44 72 | such as| QuickDr|
|00000c00| 61 77 20 61 6e 64 20 74 | 68 65 0d 09 09 53 65 67 |aw and t|he...Seg|
|00000c10| 6d 65 6e 74 20 4c 6f 61 | 64 65 72 2e 0d 09 09 0d |ment Loa|der.....|
|00000c20| 09 32 2e 09 57 68 61 74 | 20 6b 69 6e 64 20 6f 66 |.2..What| kind of|
|00000c30| 20 70 65 72 66 6f 72 6d | 61 6e 63 65 20 63 61 6e | perform|ance can|
|00000c40| 20 61 20 75 73 65 72 20 | 65 78 70 65 63 74 20 66 | a user |expect f|
|00000c50| 72 6f 6d 20 74 68 65 20 | 61 70 70 6c 69 63 61 74 |rom the |applicat|
|00000c60| 69 6f 6e 20 77 68 65 6e | 0d 09 09 69 74 20 69 73 |ion when|...it is|
|00000c70| 20 72 75 6e 6e 69 6e 67 | 20 69 6e 20 74 68 65 20 | running| in the |
|00000c80| 6d 69 6e 69 6d 75 6d 20 | 6d 65 6d 6f 72 79 20 63 |minimum |memory c|
|00000c90| 6f 6e 66 69 67 75 72 61 | 74 69 6f 6e 3f 20 50 65 |onfigura|tion? Pe|
|00000ca0| 72 66 6f 72 6d 61 6e 63 | 65 20 69 6e 63 6c 75 64 |rformanc|e includ|
|00000cb0| 65 73 0d 09 09 6e 6f 74 | 20 6f 6e 6c 79 20 73 70 |es...not| only sp|
|00000cc0| 65 65 64 20 69 6e 20 68 | 61 6e 64 6c 69 6e 67 20 |eed in h|andling |
|00000cd0| 64 61 74 61 2c 20 62 75 | 74 20 61 6c 73 6f 20 74 |data, bu|t also t|
|00000ce0| 68 69 6e 67 73 20 6c 69 | 6b 65 20 68 6f 77 20 6d |hings li|ke how m|
|00000cf0| 61 6e 79 20 64 6f 63 75 | 6d 65 6e 74 73 0d 09 09 |any docu|ments...|
|00000d00| 63 61 6e 20 62 65 20 6f | 70 65 6e 65 64 2c 20 65 |can be o|pened, e|
|00000d10| 74 63 2e 0d 09 09 0d 09 | 33 2e 09 57 68 61 74 20 |tc......|3..What |
|00000d20| 61 72 65 20 74 68 65 20 | 74 79 70 69 63 61 6c 20 |are the |typical |
|00000d30| 73 69 7a 65 73 20 6f 66 | 20 73 63 72 61 70 73 20 |sizes of| scraps |
|00000d40| 69 73 20 5b 61 20 62 6f | 79 20 64 6f 67 5d 20 74 |is [a bo|y dog] t|
|00000d50| 68 61 74 20 61 20 75 73 | 65 72 20 6d 69 67 68 74 |hat a us|er might|
|00000d60| 0d 09 09 77 69 73 68 20 | 74 6f 20 77 6f 72 6b 20 |...wish |to work |
|00000d70| 77 69 74 68 20 77 68 65 | 6e 20 6c 61 75 63 68 69 |with whe|n lauchi|
|00000d80| 6e 67 20 6f 72 20 73 77 | 69 74 63 68 69 6e 67 20 |ng or sw|itching |
|00000d90| 74 6f 20 79 6f 75 72 20 | 61 70 70 6c 69 63 61 74 |to your |applicat|
|00000da0| 69 6f 6e 3f 20 49 66 0d | 09 09 74 68 65 20 61 6d |ion? If.|..the am|
|00000db0| 6f 75 6e 74 20 6f 66 20 | 6d 65 6d 6f 72 79 20 69 |ount of |memory i|
|00000dc0| 73 20 74 6f 6f 20 73 6d | 61 6c 6c 2c 20 74 68 65 |s too sm|all, the|
|00000dd0| 20 73 63 72 61 70 20 6d | 61 79 20 67 65 74 20 6c | scrap m|ay get l|
|00000de0| 6f 73 74 20 5b 77 69 6c | 6c 20 68 61 76 65 0d 09 |ost [wil|l have..|
|00000df0| 09 74 6f 20 62 65 20 73 | 68 6f 74 5d 2e 20 54 68 |.to be s|hot]. Th|
|00000e00| 69 73 20 63 61 6e 20 62 | 65 20 71 75 69 74 65 20 |is can b|e quite |
|00000e10| 66 72 75 73 74 72 61 74 | 69 6e 67 20 74 6f 20 74 |frustrat|ing to t|
|00000e20| 68 65 20 75 73 65 72 2e | 0d 09 09 0d 09 34 2e 09 |he user.|.....4..|
|00000e30| 54 68 65 20 70 72 65 76 | 69 6f 75 73 20 69 74 65 |The prev|ious ite|
|00000e40| 6d 73 20 68 61 76 65 20 | 63 6f 6e 63 65 6e 74 72 |ms have |concentr|
|00000e50| 61 74 65 64 20 6f 6e 20 | 74 6f 70 69 63 73 20 74 |ated on |topics t|
|00000e60| 68 61 74 20 74 65 6e 64 | 20 74 6f 20 63 61 75 73 |hat tend| to caus|
|00000e70| 65 20 61 6e 0d 09 09 69 | 6e 63 72 65 61 73 65 20 |e an...i|ncrease |
|00000e80| 69 6e 20 74 68 65 20 6d | 69 6e 69 6d 75 6d 20 73 |in the m|inimum s|
|00000e90| 69 7a 65 20 74 6f 20 72 | 65 71 75 65 73 74 20 66 |ize to r|equest f|
|00000ea0| 72 6f 6d 20 4d 75 6c 74 | 69 46 69 6e 64 65 72 2e |rom Mult|iFinder.|
|00000eb0| 20 4f 6e 20 74 68 65 20 | 66 6c 69 70 0d 09 09 73 | On the |flip...s|
|00000ec0| 69 64 65 2c 20 68 6f 77 | 65 76 65 72 2c 20 73 68 |ide, how|ever, sh|
|00000ed0| 6f 75 6c 64 20 62 65 20 | 74 68 65 20 63 6f 6e 73 |ould be |the cons|
|00000ee0| 69 64 65 72 61 74 69 6f | 6e 20 6f 66 20 77 68 61 |ideratio|n of wha|
|00000ef0| 74 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 73 20 74 |t enviro|nments t|
|00000f00| 68 65 0d 09 09 61 70 70 | 6c 69 63 61 74 69 6f 6e |he...app|lication|
|00000f10| 20 6d 61 79 20 62 65 20 | 72 75 6e 6e 69 6e 67 20 | may be |running |
|00000f20| 69 6e 2e 20 54 68 65 72 | 65 20 6d 61 79 20 62 65 |in. Ther|e may be|
|00000f30| 20 61 20 68 69 67 68 20 | 70 72 6f 62 61 62 69 6c | a high |probabil|
|00000f40| 69 74 79 20 74 68 61 74 | 0d 09 09 6d 61 6e 79 20 |ity that|...many |
|00000f50| 75 73 65 72 73 20 77 69 | 74 68 20 72 65 6c 61 74 |users wi|th relat|
|00000f60| 69 76 65 6c 79 20 73 6d | 61 6c 6c 20 6d 65 6d 6f |ively sm|all memo|
|00000f70| 72 79 20 63 6f 6e 66 69 | 67 75 72 61 74 69 6f 6e |ry confi|guration|
|00000f80| 73 20 77 69 6c 6c 20 77 | 61 6e 74 20 74 6f 0d 09 |s will w|ant to..|
|00000f90| 09 61 76 61 69 6c 20 74 | 68 65 6d 73 65 6c 76 65 |.avail t|hemselve|
|00000fa0| 73 20 6f 66 20 79 6f 75 | 72 20 61 70 70 6c 69 63 |s of you|r applic|
|00000fb0| 61 74 69 6f 6e 2e 20 4f | 72 2c 20 6d 61 6e 79 20 |ation. O|r, many |
|00000fc0| 75 73 65 72 73 20 6d 69 | 67 68 74 20 77 61 6e 74 |users mi|ght want|
|00000fd0| 20 74 6f 20 75 73 65 20 | 69 74 0d 09 09 77 68 69 | to use |it...whi|
|00000fe0| 6c 65 20 73 65 76 65 72 | 61 6c 20 6f 74 68 65 72 |le sever|al other|
|00000ff0| 2c 20 70 6f 73 73 69 62 | 6c 79 20 72 65 6c 61 74 |, possib|ly relat|
|00001000| 65 64 2f 63 6f 6d 70 6c | 65 6d 65 6e 74 61 72 79 |ed/compl|ementary|
|00001010| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 73 20 61 72 | applica|tions ar|
|00001020| 65 0d 09 09 72 75 6e 6e | 69 6e 67 2e 20 49 66 20 |e...runn|ing. If |
|00001030| 74 68 61 74 20 69 73 20 | 74 68 65 20 63 61 73 65 |that is |the case|
|00001040| 2c 20 69 74 20 77 6f 75 | 6c 64 20 62 65 20 68 65 |, it wou|ld be he|
|00001050| 6c 70 66 75 6c 20 74 6f | 20 68 61 76 65 20 61 20 |lpful to| have a |
|00001060| 66 61 69 72 6c 79 0d 09 | 09 73 6d 61 6c 6c 20 6d |fairly..|.small m|
|00001070| 69 6e 69 6d 75 6d 20 73 | 69 7a 65 2e 0d 09 0d 09 |inimum s|ize.....|
|00001080| 57 68 61 74 20 77 65 20 | 64 69 64 20 66 6f 72 20 |What we |did for |
|00001090| 54 45 53 74 79 6c 65 53 | 61 6d 70 6c 65 3a 0d 09 |TEStyleS|ample:..|
|000010a0| 0d 09 09 57 65 20 64 65 | 74 65 72 6d 69 6e 65 64 |...We de|termined|
|000010b0| 20 74 68 65 20 73 6d 61 | 6c 6c 65 73 74 20 68 65 | the sma|llest he|
|000010c0| 61 70 20 73 69 7a 65 20 | 74 68 61 74 20 54 45 53 |ap size |that TES|
|000010d0| 74 79 6c 65 53 61 6d 70 | 6c 65 20 63 6f 75 6c 64 |tyleSamp|le could|
|000010e0| 20 68 61 76 65 20 61 6e | 64 20 73 74 69 6c 6c 0d | have an|d still.|
|000010f0| 09 09 72 75 6e 20 28 32 | 32 4b 29 2e 20 46 6f 72 |..run (2|2K). For|
|00001100| 20 74 68 65 20 70 72 65 | 66 65 72 72 65 64 20 73 | the pre|ferred s|
|00001110| 69 7a 65 20 77 65 20 61 | 64 64 65 64 20 65 6e 6f |ize we a|dded eno|
|00001120| 75 67 68 20 73 70 61 63 | 65 20 74 6f 20 70 65 72 |ugh spac|e to per|
|00001130| 6d 69 74 3a 0d 09 09 09 | 61 2e 20 61 20 6d 61 78 |mit:....|a. a max|
|00001140| 69 6d 75 6d 20 73 69 7a | 65 20 54 65 78 74 45 64 |imum siz|e TextEd|
|00001150| 69 74 20 74 65 78 74 20 | 68 61 6e 64 6c 65 20 28 |it text |handle (|
|00001160| 33 32 30 30 30 20 63 68 | 61 72 61 63 74 65 72 73 |32000 ch|aracters|
|00001170| 29 0d 09 09 09 62 2e 20 | 61 20 6d 61 78 69 6d 75 |)....b. |a maximu|
|00001180| 6d 20 75 73 61 62 6c 65 | 20 54 65 78 74 45 64 69 |m usable| TextEdi|
|00001190| 74 20 73 63 72 61 70 20 | 28 33 32 30 30 30 20 63 |t scrap |(32000 c|
|000011a0| 68 61 72 61 63 74 65 72 | 73 29 0d 09 09 09 62 2e |haracter|s)....b.|
|000011b0| 20 61 20 6d 61 78 69 6d | 75 6d 20 73 63 72 61 70 | a maxim|um scrap|
|000011c0| 20 61 73 20 61 20 72 65 | 73 75 6c 74 20 6f 66 20 | as a re|sult of |
|000011d0| 43 6f 70 79 20 28 33 32 | 30 30 30 20 63 68 61 72 |Copy (32|000 char|
|000011e0| 61 63 74 65 72 73 29 0d | 09 09 09 64 2e 20 61 20 |acters).|...d. a |
|000011f0| 6c 69 74 74 6c 65 20 70 | 65 72 66 6f 72 6d 61 6e |little p|erforman|
|00001200| 63 65 20 63 75 73 68 69 | 6f 6e 20 28 73 65 65 20 |ce cushi|on (see |
|00001210| 32 2c 20 61 62 6f 76 65 | 29 20 28 31 30 4b 29 0d |2, above|) (10K).|
|00001220| 09 09 52 65 73 75 6c 74 | 3a 20 31 32 32 4b 20 66 |..Result|: 122K f|
|00001230| 6f 72 20 70 72 65 66 65 | 72 72 65 64 20 73 69 7a |or prefe|rred siz|
|00001240| 65 0d 09 09 0d 09 09 46 | 6f 72 20 74 68 65 20 6d |e......F|or the m|
|00001250| 69 6e 69 6d 75 6d 20 73 | 69 7a 65 20 77 65 20 74 |inimum s|ize we t|
|00001260| 6f 6f 6b 20 74 68 65 20 | 32 32 4b 20 61 6e 64 20 |ook the |22K and |
|00001270| 74 68 65 6e 20 73 63 61 | 6c 65 64 20 64 6f 77 6e |then sca|led down|
|00001280| 20 6f 75 72 20 72 65 71 | 75 69 72 65 6d 65 6e 74 | our req|uirement|
|00001290| 73 0d 09 09 66 6f 72 20 | 61 2c 62 2c 20 61 6e 64 |s...for |a,b, and|
|000012a0| 20 63 20 61 62 6f 76 65 | 2e 20 57 65 20 74 68 6f | c above|. We tho|
|000012b0| 75 67 68 74 20 74 68 61 | 74 20 70 72 6f 76 69 64 |ught tha|t provid|
|000012c0| 69 6e 67 20 31 36 4b 20 | 6d 6f 72 65 20 77 6f 75 |ing 16K |more wou|
|000012d0| 6c 64 20 62 65 20 6c 65 | 61 6e 0d 09 09 61 6e 64 |ld be le|an...and|
|000012e0| 20 6d 65 61 6e 20 28 73 | 65 65 20 34 2c 20 61 62 | mean (s|ee 4, ab|
|000012f0| 6f 76 65 29 2e 0d 09 09 | 52 65 73 75 6c 74 3a 20 |ove)....|Result: |
|00001300| 33 38 4b 20 66 6f 72 20 | 6d 69 6e 69 6d 75 6d 20 |38K for |minimum |
|00001310| 73 69 7a 65 0d 2a 2f 0d | 20 0d 23 64 65 66 69 6e |size.*/.| .#defin|
|00001320| 65 20 6b 50 72 65 66 53 | 69 7a 65 09 09 09 09 31 |e kPrefS|ize....1|
|00001330| 32 32 0d 23 64 65 66 69 | 6e 65 20 6b 4d 69 6e 53 |22.#defi|ne kMinS|
|00001340| 69 7a 65 09 09 09 09 33 | 38 0d 09 0d 2f 2a 20 54 |ize....3|8.../* T|
|00001350| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 63 6f 6e |he follo|wing con|
|00001360| 73 74 61 6e 74 73 20 61 | 72 65 20 75 73 65 64 20 |stants a|re used |
|00001370| 74 6f 20 69 64 65 6e 74 | 69 66 79 20 6d 65 6e 75 |to ident|ify menu|
|00001380| 73 20 61 6e 64 20 74 68 | 65 69 72 20 69 74 65 6d |s and th|eir item|
|00001390| 73 2e 20 54 68 65 20 6d | 65 6e 75 20 49 44 73 0d |s. The m|enu IDs.|
|000013a0| 20 20 20 68 61 76 65 20 | 61 6e 20 22 6d 22 20 70 | have |an "m" p|
|000013b0| 72 65 66 69 78 20 61 6e | 64 20 74 68 65 20 69 74 |refix an|d the it|
|000013c0| 65 6d 20 6e 75 6d 62 65 | 72 73 20 77 69 74 68 69 |em numbe|rs withi|
|000013d0| 6e 20 65 61 63 68 20 6d | 65 6e 75 20 68 61 76 65 |n each m|enu have|
|000013e0| 20 61 6e 20 22 69 22 20 | 70 72 65 66 69 78 2e 20 | an "i" |prefix. |
|000013f0| 2a 2f 0d 23 64 65 66 69 | 6e 65 09 6d 41 70 70 6c |*/.#defi|ne.mAppl|
|00001400| 65 09 09 09 09 09 31 32 | 38 09 09 2f 2a 20 41 70 |e.....12|8../* Ap|
|00001410| 70 6c 65 20 6d 65 6e 75 | 20 2a 2f 0d 23 64 65 66 |ple menu| */.#def|
|00001420| 69 6e 65 09 69 41 62 6f | 75 74 09 09 09 09 09 31 |ine.iAbo|ut.....1|
|00001430| 0d 0d 23 64 65 66 69 6e | 65 09 6d 46 69 6c 65 09 |..#defin|e.mFile.|
|00001440| 09 09 09 09 31 32 39 09 | 09 2f 2a 20 46 69 6c 65 |....129.|./* File|
|00001450| 20 6d 65 6e 75 20 2a 2f | 0d 23 64 65 66 69 6e 65 | menu */|.#define|
|00001460| 09 69 4e 65 77 09 09 09 | 09 09 31 0d 23 64 65 66 |.iNew...|..1.#def|
|00001470| 69 6e 65 09 69 43 6c 6f | 73 65 09 09 09 09 09 34 |ine.iClo|se.....4|
|00001480| 0d 23 64 65 66 69 6e 65 | 09 69 51 75 69 74 09 09 |.#define|.iQuit..|
|00001490| 09 09 09 31 32 0d 0d 23 | 64 65 66 69 6e 65 09 6d |...12..#|define.m|
|000014a0| 45 64 69 74 09 09 09 09 | 09 31 33 30 09 09 2f 2a |Edit....|.130../*|
|000014b0| 20 45 64 69 74 20 6d 65 | 6e 75 20 2a 2f 0d 23 64 | Edit me|nu */.#d|
|000014c0| 65 66 69 6e 65 09 69 55 | 6e 64 6f 09 09 09 09 09 |efine.iU|ndo.....|
|000014d0| 31 0d 23 64 65 66 69 6e | 65 09 69 43 75 74 09 09 |1.#defin|e.iCut..|
|000014e0| 09 09 09 33 0d 23 64 65 | 66 69 6e 65 09 69 43 6f |...3.#de|fine.iCo|
|000014f0| 70 79 09 09 09 09 09 34 | 0d 23 64 65 66 69 6e 65 |py.....4|.#define|
|00001500| 09 69 50 61 73 74 65 09 | 09 09 09 09 35 0d 23 64 |.iPaste.|....5.#d|
|00001510| 65 66 69 6e 65 09 69 43 | 6c 65 61 72 09 09 09 09 |efine.iC|lear....|
|00001520| 09 36 0d 23 64 65 66 69 | 6e 65 20 69 53 65 6c 65 |.6.#defi|ne iSele|
|00001530| 63 74 41 6c 6c 09 09 09 | 09 38 0d 0d 23 64 65 66 |ctAll...|.8..#def|
|00001540| 69 6e 65 20 6d 46 6f 6e | 74 09 09 09 09 09 31 33 |ine mFon|t.....13|
|00001550| 31 09 09 2f 2a 20 46 6f | 6e 74 20 6d 65 6e 75 20 |1../* Fo|nt menu |
|00001560| 09 09 2a 2f 0d 0d 23 64 | 65 66 69 6e 65 20 6d 46 |..*/..#d|efine mF|
|00001570| 6f 6e 74 53 69 7a 65 09 | 09 09 09 31 33 32 09 09 |ontSize.|...132..|
|00001580| 2f 2a 20 46 6f 6e 74 20 | 53 69 7a 65 20 6d 65 6e |/* Font |Size men|
|00001590| 75 20 09 2a 2f 0d 0d 23 | 64 65 66 69 6e 65 20 6d |u .*/..#|define m|
|000015a0| 53 74 79 6c 65 09 09 09 | 09 09 31 33 33 09 09 2f |Style...|..133../|
|000015b0| 2a 20 53 74 79 6c 65 20 | 6d 65 6e 75 20 09 09 2a |* Style |menu ..*|
|000015c0| 2f 0d 23 64 65 66 69 6e | 65 20 69 50 6c 61 69 6e |/.#defin|e iPlain|
|000015d0| 09 09 09 09 09 31 0d 23 | 64 65 66 69 6e 65 20 69 |.....1.#|define i|
|000015e0| 42 6f 6c 64 09 09 09 09 | 09 33 0d 23 64 65 66 69 |Bold....|.3.#defi|
|000015f0| 6e 65 20 69 49 74 61 6c | 69 63 09 09 09 09 09 34 |ne iItal|ic.....4|
|00001600| 0d 23 64 65 66 69 6e 65 | 20 69 55 6e 64 65 72 6c |.#define| iUnderl|
|00001610| 69 6e 65 09 09 09 09 35 | 0d 23 64 65 66 69 6e 65 |ine....5|.#define|
|00001620| 20 69 4f 75 74 6c 69 6e | 65 09 09 09 09 36 0d 23 | iOutlin|e....6.#|
|00001630| 64 65 66 69 6e 65 20 69 | 53 68 61 64 6f 77 09 09 |define i|Shadow..|
|00001640| 09 09 09 37 0d 0d 2f 2a | 20 6b 54 6f 70 4c 65 66 |...7../*| kTopLef|
|00001650| 74 20 2d 20 54 68 69 73 | 20 69 73 20 66 6f 72 20 |t - This| is for |
|00001660| 70 6f 73 69 74 69 6f 6e | 69 6e 67 20 74 68 65 20 |position|ing the |
|00001670| 44 69 73 6b 20 49 6e 69 | 74 69 61 6c 69 7a 61 74 |Disk Ini|tializat|
|00001680| 69 6f 6e 20 64 69 61 6c | 6f 67 73 2e 20 2a 2f 0d |ion dial|ogs. */.|
|00001690| 0d 23 64 65 66 69 6e 65 | 20 6b 44 49 54 6f 70 09 |.#define| kDITop.|
|000016a0| 09 09 09 09 30 78 30 30 | 35 30 0d 23 64 65 66 69 |....0x00|50.#defi|
|000016b0| 6e 65 20 6b 44 49 4c 65 | 66 74 09 09 09 09 09 30 |ne kDILe|ft.....0|
|000016c0| 78 30 30 37 30 0d 0d 2f | 2a 09 6b 54 65 78 74 4d |x0070../|*.kTextM|
|000016d0| 61 72 67 69 6e 20 69 73 | 20 74 68 65 20 6e 75 6d |argin is| the num|
|000016e0| 62 65 72 20 6f 66 20 70 | 69 78 65 6c 73 20 77 65 |ber of p|ixels we|
|000016f0| 20 6c 65 61 76 65 20 62 | 6c 61 6e 6b 20 61 74 20 | leave b|lank at |
|00001700| 74 68 65 20 65 64 67 65 | 20 6f 66 20 74 68 65 20 |the edge| of the |
|00001710| 77 69 6e 64 6f 77 2e 20 | 2a 2f 0d 23 64 65 66 69 |window. |*/.#defi|
|00001720| 6e 65 20 6b 54 65 78 74 | 4d 61 72 67 69 6e 09 09 |ne kText|Margin..|
|00001730| 09 09 32 0d 0d 2f 2a 20 | 6b 4d 61 78 4f 70 65 6e |..2../* |kMaxOpen|
|00001740| 44 6f 63 75 6d 65 6e 74 | 73 20 69 73 20 75 73 65 |Document|s is use|
|00001750| 64 20 74 6f 20 64 65 74 | 65 72 6d 69 6e 65 20 77 |d to det|ermine w|
|00001760| 68 65 74 68 65 72 20 61 | 20 6e 65 77 20 64 6f 63 |hether a| new doc|
|00001770| 75 6d 65 6e 74 20 63 61 | 6e 20 62 65 20 6f 70 65 |ument ca|n be ope|
|00001780| 6e 65 64 0d 20 20 20 6f | 72 20 63 72 65 61 74 65 |ned. o|r create|
|00001790| 64 2e 20 57 65 20 6b 65 | 65 70 20 74 72 61 63 6b |d. We ke|ep track|
|000017a0| 20 6f 66 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f | of the |number o|
|000017b0| 66 20 6f 70 65 6e 20 64 | 6f 63 75 6d 65 6e 74 73 |f open d|ocuments|
|000017c0| 2c 20 61 6e 64 20 64 69 | 73 61 62 6c 65 20 74 68 |, and di|sable th|
|000017d0| 65 0d 20 20 20 6d 65 6e | 75 20 69 74 65 6d 73 20 |e. men|u items |
|000017e0| 74 68 61 74 20 63 72 65 | 61 74 65 20 61 20 6e 65 |that cre|ate a ne|
|000017f0| 77 20 64 6f 63 75 6d 65 | 6e 74 20 77 68 65 6e 20 |w docume|nt when |
|00001800| 74 68 65 20 6d 61 78 69 | 6d 75 6d 20 69 73 20 72 |the maxi|mum is r|
|00001810| 65 61 63 68 65 64 2e 20 | 49 66 20 74 68 65 0d 20 |eached. |If the. |
|00001820| 20 20 6e 75 6d 62 65 72 | 20 6f 66 20 64 6f 63 75 | number| of docu|
|00001830| 6d 65 6e 74 73 20 66 61 | 6c 6c 73 20 62 65 6c 6f |ments fa|lls belo|
|00001840| 77 20 74 68 65 20 6d 61 | 78 69 6d 75 6d 2c 20 74 |w the ma|ximum, t|
|00001850| 68 65 20 69 74 65 6d 73 | 20 61 72 65 20 65 6e 61 |he items| are ena|
|00001860| 62 6c 65 64 20 61 67 61 | 69 6e 2e 20 2a 2f 0d 23 |bled aga|in. */.#|
|00001870| 64 65 66 69 6e 65 09 6b | 4d 61 78 4f 70 65 6e 44 |define.k|MaxOpenD|
|00001880| 6f 63 75 6d 65 6e 74 73 | 09 09 31 0d 09 0d 2f 2a |ocuments|..1.../*|
|00001890| 09 6b 4d 61 78 44 6f 63 | 57 69 64 74 68 20 69 73 |.kMaxDoc|Width is|
|000018a0| 20 61 6e 20 61 72 62 69 | 74 72 61 72 79 20 6e 75 | an arbi|trary nu|
|000018b0| 6d 62 65 72 20 75 73 65 | 64 20 74 6f 20 73 70 65 |mber use|d to spe|
|000018c0| 63 69 66 79 20 74 68 65 | 20 77 69 64 74 68 20 6f |cify the| width o|
|000018d0| 66 20 74 68 65 20 54 45 | 52 65 63 27 73 0d 09 64 |f the TE|Rec's..d|
|000018e0| 65 73 74 69 6e 61 74 69 | 6f 6e 20 72 65 63 74 61 |estinati|on recta|
|000018f0| 6e 67 6c 65 20 73 6f 20 | 74 68 61 74 20 77 6f 72 |ngle so |that wor|
|00001900| 64 20 77 72 61 70 20 61 | 6e 64 20 68 6f 72 69 7a |d wrap a|nd horiz|
|00001910| 6f 6e 74 61 6c 20 73 63 | 72 6f 6c 6c 69 6e 67 20 |ontal sc|rolling |
|00001920| 63 61 6e 20 62 65 0d 09 | 64 65 6d 6f 6e 73 74 72 |can be..|demonstr|
|00001930| 61 74 65 64 2e 20 2a 2f | 0d 23 64 65 66 69 6e 65 |ated. */|.#define|
|00001940| 09 6b 4d 61 78 44 6f 63 | 57 69 64 74 68 09 09 09 |.kMaxDoc|Width...|
|00001950| 35 37 36 0d 09 0d 2f 2a | 20 6b 4d 69 6e 44 6f 63 |576.../*| kMinDoc|
|00001960| 44 69 6d 20 69 73 20 75 | 73 65 64 20 74 6f 20 6c |Dim is u|sed to l|
|00001970| 69 6d 69 74 20 74 68 65 | 20 6d 69 6e 69 6d 75 6d |imit the| minimum|
|00001980| 20 64 69 6d 65 6e 73 69 | 6f 6e 20 6f 66 20 61 20 | dimensi|on of a |
|00001990| 77 69 6e 64 6f 77 20 77 | 68 65 6e 20 47 72 6f 77 |window w|hen Grow|
|000019a0| 57 69 6e 64 6f 77 0d 09 | 69 73 20 63 61 6c 6c 65 |Window..|is calle|
|000019b0| 64 2e 20 2a 2f 0d 23 64 | 65 66 69 6e 65 09 6b 4d |d. */.#d|efine.kM|
|000019c0| 69 6e 44 6f 63 44 69 6d | 09 09 09 09 36 34 0d 0d |inDocDim|....64..|
|000019d0| 2f 2a 09 6b 43 6f 6e 74 | 72 6f 6c 49 6e 76 69 73 |/*.kCont|rolInvis|
|000019e0| 69 62 6c 65 20 69 73 20 | 75 73 65 64 20 74 6f 20 |ible is |used to |
|000019f0| 27 74 75 72 6e 20 6f 66 | 66 27 20 63 6f 6e 74 72 |'turn of|f' contr|
|00001a00| 6f 6c 73 20 28 69 2e 65 | 2e 2c 20 63 61 75 73 65 |ols (i.e|., cause|
|00001a10| 20 74 68 65 20 63 6f 6e | 74 72 6f 6c 20 6e 6f 74 | the con|trol not|
|00001a20| 0d 09 74 6f 20 62 65 20 | 72 65 64 72 61 77 6e 20 |..to be |redrawn |
|00001a30| 61 73 20 61 20 72 65 73 | 75 6c 74 20 6f 66 20 73 |as a res|ult of s|
|00001a40| 6f 6d 65 20 43 6f 6e 74 | 72 6f 6c 20 4d 61 6e 61 |ome Cont|rol Mana|
|00001a50| 67 65 72 20 63 61 6c 6c | 20 73 75 63 68 20 61 73 |ger call| such as|
|00001a60| 20 53 65 74 43 74 6c 56 | 61 6c 75 65 29 0d 09 62 | SetCtlV|alue)..b|
|00001a70| 79 20 62 65 69 6e 67 20 | 70 75 74 20 69 6e 74 6f |y being |put into|
|00001a80| 20 74 68 65 20 63 6f 6e | 74 72 6c 56 69 73 20 66 | the con|trlVis f|
|00001a90| 69 65 6c 64 20 6f 66 20 | 74 68 65 20 72 65 63 6f |ield of |the reco|
|00001aa0| 72 64 2e 20 6b 43 6f 6e | 74 72 6f 6c 56 69 73 69 |rd. kCon|trolVisi|
|00001ab0| 62 6c 65 20 69 73 20 75 | 73 65 64 0d 09 74 68 65 |ble is u|sed..the|
|00001ac0| 20 73 61 6d 65 20 77 61 | 79 20 74 6f 20 27 74 75 | same wa|y to 'tu|
|00001ad0| 72 6e 20 6f 6e 27 20 74 | 68 65 20 63 6f 6e 74 72 |rn on' t|he contr|
|00001ae0| 6f 6c 2e 20 2a 2f 0d 23 | 64 65 66 69 6e 65 20 6b |ol. */.#|define k|
|00001af0| 43 6f 6e 74 72 6f 6c 49 | 6e 76 69 73 69 62 6c 65 |ControlI|nvisible|
|00001b00| 09 09 30 0d 23 64 65 66 | 69 6e 65 20 6b 43 6f 6e |..0.#def|ine kCon|
|00001b10| 74 72 6f 6c 56 69 73 69 | 62 6c 65 09 09 09 30 78 |trolVisi|ble...0x|
|00001b20| 46 46 0d 0d 2f 2a 09 6b | 53 63 72 6f 6c 6c 62 61 |FF../*.k|Scrollba|
|00001b30| 72 41 64 6a 75 73 74 20 | 61 6e 64 20 6b 53 63 72 |rAdjust |and kScr|
|00001b40| 6f 6c 6c 62 61 72 57 69 | 64 74 68 20 61 72 65 20 |ollbarWi|dth are |
|00001b50| 75 73 65 64 20 69 6e 20 | 63 61 6c 63 75 6c 61 74 |used in |calculat|
|00001b60| 69 6e 67 0d 09 76 61 6c | 75 65 73 20 66 6f 72 20 |ing..val|ues for |
|00001b70| 63 6f 6e 74 72 6f 6c 20 | 70 6f 73 69 74 69 6f 6e |control |position|
|00001b80| 69 6e 67 20 61 6e 64 20 | 73 69 7a 69 6e 67 2e 20 |ing and |sizing. |
|00001b90| 2a 2f 0d 23 64 65 66 69 | 6e 65 20 6b 53 63 72 6f |*/.#defi|ne kScro|
|00001ba0| 6c 6c 62 61 72 57 69 64 | 74 68 09 09 09 31 36 0d |llbarWid|th...16.|
|00001bb0| 23 64 65 66 69 6e 65 20 | 6b 53 63 72 6f 6c 6c 62 |#define |kScrollb|
|00001bc0| 61 72 41 64 6a 75 73 74 | 09 09 28 6b 53 63 72 6f |arAdjust|..(kScro|
|00001bd0| 6c 6c 62 61 72 57 69 64 | 74 68 20 2d 20 31 29 0d |llbarWid|th - 1).|
|00001be0| 0d 2f 2a 09 6b 53 63 72 | 6f 6c 6c 54 77 65 65 6b |./*.kScr|ollTweek|
|00001bf0| 20 63 6f 6d 70 65 6e 73 | 61 74 65 73 20 66 6f 72 | compens|ates for|
|00001c00| 20 6f 66 66 2d 62 79 2d | 6f 6e 65 20 72 65 71 75 | off-by-|one requ|
|00001c10| 69 72 65 6d 65 6e 74 73 | 20 6f 66 20 74 68 65 20 |irements| of the |
|00001c20| 73 63 72 6f 6c 6c 62 61 | 72 73 0d 20 74 6f 20 68 |scrollba|rs. to h|
|00001c30| 61 76 65 20 62 6f 72 64 | 65 72 73 20 63 6f 69 6e |ave bord|ers coin|
|00001c40| 63 69 64 65 20 77 69 74 | 68 20 74 68 65 20 67 72 |cide wit|h the gr|
|00001c50| 6f 77 62 6f 78 2e 20 2a | 2f 0d 23 64 65 66 69 6e |owbox. *|/.#defin|
|00001c60| 65 20 6b 53 63 72 6f 6c | 6c 54 77 65 65 6b 09 09 |e kScrol|lTweek..|
|00001c70| 09 32 0d 09 0d 2f 2a 09 | 6b 43 72 43 68 61 72 20 |.2.../*.|kCrChar |
|00001c80| 69 73 20 75 73 65 64 20 | 74 6f 20 6d 61 74 63 68 |is used |to match|
|00001c90| 20 77 69 74 68 20 61 20 | 63 61 72 72 69 61 67 65 | with a |carriage|
|00001ca0| 20 72 65 74 75 72 6e 20 | 77 68 65 6e 20 63 61 6c | return |when cal|
|00001cb0| 63 75 6c 61 74 69 6e 67 | 20 74 68 65 0d 09 6e 75 |culating| the..nu|
|00001cc0| 6d 62 65 72 20 6f 66 20 | 6c 69 6e 65 73 20 69 6e |mber of |lines in|
|00001cd0| 20 74 68 65 20 54 65 78 | 74 45 64 69 74 20 72 65 | the Tex|tEdit re|
|00001ce0| 63 6f 72 64 2e 20 6b 44 | 65 6c 43 68 61 72 20 69 |cord. kD|elChar i|
|00001cf0| 73 20 75 73 65 64 20 74 | 6f 20 63 68 65 63 6b 20 |s used t|o check |
|00001d00| 66 6f 72 0d 09 64 65 6c | 65 74 65 20 69 6e 20 6b |for..del|ete in k|
|00001d10| 65 79 44 6f 77 6e 73 2e | 20 2a 2f 0d 23 64 65 66 |eyDowns.| */.#def|
|00001d20| 69 6e 65 20 6b 43 72 43 | 68 61 72 09 09 09 09 09 |ine kCrC|har.....|
|00001d30| 31 33 0d 23 64 65 66 69 | 6e 65 20 6b 44 65 6c 43 |13.#defi|ne kDelC|
|00001d40| 68 61 72 09 09 09 09 38 | 0d 09 0d 2f 2a 09 6b 42 |har....8|.../*.kB|
|00001d50| 75 74 74 6f 6e 53 63 72 | 6f 6c 6c 20 69 73 20 68 |uttonScr|oll is h|
|00001d60| 6f 77 20 6d 61 6e 79 20 | 70 69 78 65 6c 73 20 74 |ow many |pixels t|
|00001d70| 6f 20 73 63 72 6f 6c 6c | 20 68 6f 72 69 7a 6f 6e |o scroll| horizon|
|00001d80| 74 61 6c 6c 79 20 77 68 | 65 6e 20 74 68 65 20 62 |tally wh|en the b|
|00001d90| 75 74 74 6f 6e 20 70 61 | 72 74 0d 09 6f 66 20 74 |utton pa|rt..of t|
|00001da0| 68 65 20 68 6f 72 69 7a | 6f 6e 74 61 6c 20 73 63 |he horiz|ontal sc|
|00001db0| 72 6f 6c 6c 62 61 72 20 | 69 73 20 70 72 65 73 73 |rollbar |is press|
|00001dc0| 65 64 2e 20 2a 2f 0d 23 | 64 65 66 69 6e 65 20 6b |ed. */.#|define k|
|00001dd0| 42 75 74 74 6f 6e 53 63 | 72 6f 6c 6c 09 09 09 34 |ButtonSc|roll...4|
|00001de0| 0d 09 0d 2f 2a 09 6b 4d | 61 78 54 45 4c 65 6e 67 |.../*.kM|axTELeng|
|00001df0| 74 68 20 69 73 20 61 6e | 20 61 72 62 69 74 72 61 |th is an| arbitra|
|00001e00| 72 79 20 6e 75 6d 62 65 | 72 20 75 73 65 64 20 74 |ry numbe|r used t|
|00001e10| 6f 20 6c 69 6d 69 74 20 | 74 68 65 20 6c 65 6e 67 |o limit |the leng|
|00001e20| 74 68 20 6f 66 20 74 65 | 78 74 20 69 6e 20 74 68 |th of te|xt in th|
|00001e30| 65 20 54 45 52 65 63 0d | 09 73 6f 20 74 68 61 74 |e TERec.|.so that|
|00001e40| 20 76 61 72 69 6f 75 73 | 20 65 72 72 6f 72 73 20 | various| errors |
|00001e50| 77 6f 6e 27 74 20 6f 63 | 63 75 72 20 66 72 6f 6d |won't oc|cur from|
|00001e60| 20 74 6f 6f 20 6d 61 6e | 79 20 63 68 61 72 61 63 | too man|y charac|
|00001e70| 74 65 72 73 20 69 6e 20 | 74 68 65 20 74 65 78 74 |ters in |the text|
|00001e80| 2e 20 2a 2f 0d 23 64 65 | 66 69 6e 65 09 6b 4d 61 |. */.#de|fine.kMa|
|00001e90| 78 54 45 4c 65 6e 67 74 | 68 09 09 09 33 32 30 30 |xTELengt|h...3200|
|00001ea0| 30 0d 0d 2f 2a 20 6b 53 | 79 73 45 6e 76 69 72 6f |0../* kS|ysEnviro|
|00001eb0| 6e 73 56 65 72 73 69 6f | 6e 20 69 73 20 70 61 73 |nsVersio|n is pas|
|00001ec0| 73 65 64 20 74 6f 20 53 | 79 73 45 6e 76 69 72 6f |sed to S|ysEnviro|
|00001ed0| 6e 73 20 74 6f 20 74 65 | 6c 6c 20 69 74 20 77 68 |ns to te|ll it wh|
|00001ee0| 69 63 68 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 74 |ich vers|ion of t|
|00001ef0| 68 65 0d 20 20 20 53 79 | 73 45 6e 76 52 65 63 20 |he. Sy|sEnvRec |
|00001f00| 77 65 20 75 6e 64 65 72 | 73 74 61 6e 64 2e 20 2a |we under|stand. *|
|00001f10| 2f 0d 23 64 65 66 69 6e | 65 09 6b 53 79 73 45 6e |/.#defin|e.kSysEn|
|00001f20| 76 69 72 6f 6e 73 56 65 | 72 73 69 6f 6e 09 09 31 |vironsVe|rsion..1|
|00001f30| 0d 0d 2f 2a 20 6b 4f 53 | 45 76 65 6e 74 20 69 73 |../* kOS|Event is|
|00001f40| 20 74 68 65 20 65 76 65 | 6e 74 20 6e 75 6d 62 65 | the eve|nt numbe|
|00001f50| 72 20 6f 66 20 74 68 65 | 20 73 75 73 70 65 6e 64 |r of the| suspend|
|00001f60| 2f 72 65 73 75 6d 65 20 | 61 6e 64 20 6d 6f 75 73 |/resume |and mous|
|00001f70| 65 2d 6d 6f 76 65 64 20 | 65 76 65 6e 74 73 20 73 |e-moved |events s|
|00001f80| 65 6e 74 0d 20 20 20 62 | 79 20 4d 75 6c 74 69 46 |ent. b|y MultiF|
|00001f90| 69 6e 64 65 72 2e 20 4f | 6e 63 65 20 77 65 20 64 |inder. O|nce we d|
|00001fa0| 65 74 65 72 6d 69 6e 65 | 20 74 68 61 74 20 61 6e |etermine| that an|
|00001fb0| 20 65 76 65 6e 74 20 69 | 73 20 61 6e 20 4f 53 45 | event i|s an OSE|
|00001fc0| 76 65 6e 74 2c 20 77 65 | 20 6c 6f 6f 6b 20 61 74 |vent, we| look at|
|00001fd0| 20 74 68 65 0d 20 20 20 | 68 69 67 68 20 62 79 74 | the. |high byt|
|00001fe0| 65 20 6f 66 20 74 68 65 | 20 6d 65 73 73 61 67 65 |e of the| message|
|00001ff0| 20 73 65 6e 74 20 74 6f | 20 64 65 74 65 72 6d 69 | sent to| determi|
|00002000| 6e 65 20 77 68 69 63 68 | 20 6b 69 6e 64 20 69 74 |ne which| kind it|
|00002010| 20 69 73 2e 20 54 6f 20 | 64 69 66 66 65 72 65 6e | is. To |differen|
|00002020| 74 69 61 74 65 0d 20 20 | 20 73 75 73 70 65 6e 64 |tiate. | suspend|
|00002030| 20 61 6e 64 20 72 65 73 | 75 6d 65 20 65 76 65 6e | and res|ume even|
|00002040| 74 73 20 77 65 20 63 68 | 65 63 6b 20 74 68 65 20 |ts we ch|eck the |
|00002050| 72 65 73 75 6d 65 4d 61 | 73 6b 20 62 69 74 2e 20 |resumeMa|sk bit. |
|00002060| 2a 2f 0d 23 64 65 66 69 | 6e 65 09 6b 4f 53 45 76 |*/.#defi|ne.kOSEv|
|00002070| 65 6e 74 09 09 09 09 61 | 70 70 34 45 76 74 09 2f |ent....a|pp4Evt./|
|00002080| 2a 20 65 76 65 6e 74 20 | 75 73 65 64 20 62 79 20 |* event |used by |
|00002090| 4d 75 6c 74 69 46 69 6e | 64 65 72 20 2a 2f 0d 23 |MultiFin|der */.#|
|000020a0| 64 65 66 69 6e 65 09 6b | 53 75 73 70 65 6e 64 52 |define.k|SuspendR|
|000020b0| 65 73 75 6d 65 4d 65 73 | 73 61 67 65 09 31 09 09 |esumeMes|sage.1..|
|000020c0| 2f 2a 20 68 69 67 68 20 | 62 79 74 65 20 6f 66 20 |/* high |byte of |
|000020d0| 73 75 73 70 65 6e 64 2f | 72 65 73 75 6d 65 20 65 |suspend/|resume e|
|000020e0| 76 65 6e 74 20 6d 65 73 | 73 61 67 65 20 2a 2f 0d |vent mes|sage */.|
|000020f0| 23 64 65 66 69 6e 65 09 | 6b 52 65 73 75 6d 65 4d |#define.|kResumeM|
|00002100| 61 73 6b 09 09 09 09 31 | 09 09 2f 2a 20 62 69 74 |ask....1|../* bit|
|00002110| 20 6f 66 20 6d 65 73 73 | 61 67 65 20 66 69 65 6c | of mess|age fiel|
|00002120| 64 20 66 6f 72 20 72 65 | 73 75 6d 65 20 76 73 2e |d for re|sume vs.|
|00002130| 20 73 75 73 70 65 6e 64 | 20 2a 2f 0d 23 64 65 66 | suspend| */.#def|
|00002140| 69 6e 65 09 6b 4d 6f 75 | 73 65 4d 6f 76 65 64 4d |ine.kMou|seMovedM|
|00002150| 65 73 73 61 67 65 09 09 | 30 78 46 41 09 2f 2a 20 |essage..|0xFA./* |
|00002160| 68 69 67 68 20 62 79 74 | 65 20 6f 66 20 6d 6f 75 |high byt|e of mou|
|00002170| 73 65 2d 6d 6f 76 65 64 | 20 65 76 65 6e 74 20 6d |se-moved| event m|
|00002180| 65 73 73 61 67 65 20 2a | 2f 0d 0d 2f 2a 20 6b 4d |essage *|/../* kM|
|00002190| 69 6e 48 65 61 70 20 2d | 20 54 68 69 73 20 69 73 |inHeap -| This is|
|000021a0| 20 74 68 65 20 6d 69 6e | 69 6d 75 6d 20 72 65 73 | the min|imum res|
|000021b0| 75 6c 74 20 66 72 6f 6d | 20 74 68 65 20 66 6f 6c |ult from| the fol|
|000021c0| 6c 6f 77 69 6e 67 0d 09 | 20 65 71 75 61 74 69 6f |lowing..| equatio|
|000021d0| 6e 3a 0d 09 09 09 0d 09 | 09 09 4f 52 44 28 47 65 |n:......|..ORD(Ge|
|000021e0| 74 41 70 70 6c 4c 69 6d | 69 74 29 20 2d 20 4f 52 |tApplLim|it) - OR|
|000021f0| 44 28 41 70 70 6c 69 63 | 5a 6f 6e 65 29 0d 09 09 |D(Applic|Zone)...|
|00002200| 09 0d 09 20 66 6f 72 20 | 74 68 65 20 61 70 70 6c |... for |the appl|
|00002210| 69 63 61 74 69 6f 6e 20 | 74 6f 20 72 75 6e 2e 20 |ication |to run. |
|00002220| 49 74 20 77 69 6c 6c 20 | 69 6e 73 75 72 65 20 74 |It will |insure t|
|00002230| 68 61 74 20 65 6e 6f 75 | 67 68 20 6d 65 6d 6f 72 |hat enou|gh memor|
|00002240| 79 20 77 69 6c 6c 0d 09 | 20 62 65 20 61 72 6f 75 |y will..| be arou|
|00002250| 6e 64 20 66 6f 72 20 72 | 65 61 73 6f 6e 61 62 6c |nd for r|easonabl|
|00002260| 65 2d 73 69 7a 65 64 20 | 73 63 72 61 70 73 2c 20 |e-sized |scraps, |
|00002270| 46 4b 45 59 73 2c 20 65 | 74 63 2e 20 74 6f 20 65 |FKEYs, e|tc. to e|
|00002280| 78 69 73 74 20 77 69 74 | 68 20 74 68 65 0d 09 20 |xist wit|h the.. |
|00002290| 61 70 70 6c 69 63 61 74 | 69 6f 6e 2c 20 61 6e 64 |applicat|ion, and|
|000022a0| 20 73 74 69 6c 6c 20 67 | 69 76 65 20 74 68 65 20 | still g|ive the |
|000022b0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 73 6f 6d 65 |applicat|ion some|
|000022c0| 20 27 62 72 65 61 74 68 | 69 6e 67 20 72 6f 6f 6d | 'breath|ing room|
|000022d0| 27 2e 0d 09 20 54 6f 20 | 64 65 72 69 76 65 20 74 |'... To |derive t|
|000022e0| 68 69 73 20 6e 75 6d 62 | 65 72 2c 20 77 65 20 72 |his numb|er, we r|
|000022f0| 61 6e 20 75 6e 64 65 72 | 20 61 20 4d 75 6c 74 69 |an under| a Multi|
|00002300| 46 69 6e 64 65 72 20 70 | 61 72 74 69 74 69 6f 6e |Finder p|artition|
|00002310| 20 74 68 61 74 20 77 61 | 73 0d 09 20 6f 75 72 20 | that wa|s.. our |
|00002320| 72 65 71 75 65 73 74 65 | 64 20 6d 69 6e 69 6d 75 |requeste|d minimu|
|00002330| 6d 20 73 69 7a 65 2c 20 | 61 73 20 67 69 76 65 6e |m size, |as given|
|00002340| 20 69 6e 20 74 68 65 20 | 27 53 49 5a 45 27 20 72 | in the |'SIZE' r|
|00002350| 65 73 6f 75 72 63 65 2e | 20 2a 2f 0d 09 20 0d 23 |esource.| */.. .#|
|00002360| 64 65 66 69 6e 65 09 6b | 4d 69 6e 48 65 61 70 09 |define.k|MinHeap.|
|00002370| 09 09 09 20 28 32 39 20 | 2a 20 31 30 32 34 29 0d |... (29 |* 1024).|
|00002380| 09 0d 2f 2a 20 6b 4d 69 | 6e 53 70 61 63 65 20 2d |../* kMi|nSpace -|
|00002390| 20 54 68 69 73 20 69 73 | 20 74 68 65 20 6d 69 6e | This is| the min|
|000023a0| 69 6d 75 6d 20 72 65 73 | 75 6c 74 20 66 72 6f 6d |imum res|ult from|
|000023b0| 20 50 75 72 67 65 53 70 | 61 63 65 2c 20 77 68 65 | PurgeSp|ace, whe|
|000023c0| 6e 20 63 61 6c 6c 65 64 | 0d 09 20 61 74 20 69 6e |n called|.. at in|
|000023d0| 69 74 69 61 6c 69 7a 61 | 74 69 6f 6e 20 74 69 6d |itializa|tion tim|
|000023e0| 65 2c 20 66 6f 72 20 74 | 68 65 20 61 70 70 6c 69 |e, for t|he appli|
|000023f0| 63 61 74 69 6f 6e 20 74 | 6f 20 72 75 6e 2e 20 54 |cation t|o run. T|
|00002400| 68 69 73 20 6e 75 6d 62 | 65 72 20 61 63 74 73 0d |his numb|er acts.|
|00002410| 09 20 61 73 20 61 20 64 | 6f 75 62 6c 65 2d 63 68 |. as a d|ouble-ch|
|00002420| 65 63 6b 20 74 6f 20 69 | 6e 73 75 72 65 20 74 68 |eck to i|nsure th|
|00002430| 61 74 20 74 68 65 72 65 | 20 72 65 61 6c 6c 79 20 |at there| really |
|00002440| 69 73 20 65 6e 6f 75 67 | 68 20 6d 65 6d 6f 72 79 |is enoug|h memory|
|00002450| 20 66 6f 72 20 74 68 65 | 0d 09 20 61 70 70 6c 69 | for the|.. appli|
|00002460| 63 61 74 69 6f 6e 20 74 | 6f 20 72 75 6e 2c 20 69 |cation t|o run, i|
|00002470| 6e 63 6c 75 64 69 6e 67 | 20 77 68 61 74 20 68 61 |ncluding| what ha|
|00002480| 73 20 62 65 65 6e 20 74 | 61 6b 65 6e 20 75 70 20 |s been t|aken up |
|00002490| 61 6c 72 65 61 64 79 20 | 62 79 0d 09 20 70 72 65 |already |by.. pre|
|000024a0| 2d 6c 6f 61 64 65 64 20 | 72 65 73 6f 75 72 63 65 |-loaded |resource|
|000024b0| 73 2c 20 74 68 65 20 73 | 63 72 61 70 2c 20 63 6f |s, the s|crap, co|
|000024c0| 64 65 2c 20 61 6e 64 20 | 6f 74 68 65 72 20 73 75 |de, and |other su|
|000024d0| 6e 64 72 79 20 6d 65 6d | 6f 72 79 20 62 6c 6f 63 |ndry mem|ory bloc|
|000024e0| 6b 73 2e 20 2a 2f 0d 09 | 20 0d 23 64 65 66 69 6e |ks. */..| .#defin|
|000024f0| 65 09 6b 4d 69 6e 53 70 | 61 63 65 09 09 09 09 28 |e.kMinSp|ace....(|
|00002500| 32 30 20 2a 20 31 30 32 | 34 29 0d 0d 2f 2a 09 6b |20 * 102|4)../*.k|
|00002510| 45 78 74 72 65 6d 65 4e | 65 67 20 61 6e 64 20 6b |ExtremeN|eg and k|
|00002520| 45 78 74 72 65 6d 65 50 | 6f 73 20 61 72 65 20 75 |ExtremeP|os are u|
|00002530| 73 65 64 20 74 6f 20 73 | 65 74 20 75 70 20 77 69 |sed to s|et up wi|
|00002540| 64 65 20 6f 70 65 6e 20 | 72 65 63 74 61 6e 67 6c |de open |rectangl|
|00002550| 65 73 20 61 6e 64 20 72 | 65 67 69 6f 6e 73 2e 20 |es and r|egions. |
|00002560| 2a 2f 0d 23 64 65 66 69 | 6e 65 20 6b 45 78 74 72 |*/.#defi|ne kExtr|
|00002570| 65 6d 65 4e 65 67 09 09 | 09 09 2d 33 32 37 36 38 |emeNeg..|..-32768|
|00002580| 0d 23 64 65 66 69 6e 65 | 20 6b 45 78 74 72 65 6d |.#define| kExtrem|
|00002590| 65 50 6f 73 09 09 09 09 | 28 33 32 37 36 37 20 2d |ePos....|(32767 -|
|000025a0| 20 31 29 20 2f 2a 20 72 | 65 71 75 69 72 65 64 20 | 1) /* r|equired |
|000025b0| 74 6f 20 61 64 64 72 65 | 73 73 20 61 6e 20 6f 6c |to addre|ss an ol|
|000025c0| 64 20 72 65 67 69 6f 6e | 20 62 75 67 20 2a 2f 0d |d region| bug */.|
|000025d0| 09 0d 2f 2a 20 6b 54 45 | 53 6c 6f 70 20 70 72 6f |../* kTE|Slop pro|
|000025e0| 76 69 64 65 73 20 73 6f | 6d 65 20 65 78 74 72 61 |vides so|me extra|
|000025f0| 20 73 65 63 75 72 69 74 | 79 20 77 68 65 6e 20 70 | securit|y when p|
|00002600| 72 65 2d 66 6c 69 67 68 | 74 69 6e 67 20 65 64 69 |re-fligh|ting edi|
|00002610| 74 20 63 6f 6d 6d 61 6e | 64 73 2e 20 2a 2f 0d 23 |t comman|ds. */.#|
|00002620| 64 65 66 69 6e 65 09 6b | 54 45 53 6c 6f 70 09 09 |define.k|TESlop..|
|00002630| 09 09 09 31 30 32 34 0d | 0d 2f 2a 20 54 68 65 20 |...1024.|./* The |
|00002640| 66 6f 6c 6c 6f 77 69 6e | 67 20 61 72 65 20 69 6e |followin|g are in|
|00002650| 64 69 63 69 65 73 20 69 | 6e 74 6f 20 53 54 52 23 |dicies i|nto STR#|
|00002660| 20 72 65 73 6f 75 72 63 | 65 73 2e 20 2a 2f 0d 23 | resourc|es. */.#|
|00002670| 64 65 66 69 6e 65 09 65 | 57 72 6f 6e 67 4d 61 63 |define.e|WrongMac|
|00002680| 68 69 6e 65 09 09 09 31 | 0d 23 64 65 66 69 6e 65 |hine...1|.#define|
|00002690| 09 65 53 6d 61 6c 6c 53 | 69 7a 65 09 09 09 09 32 |.eSmallS|ize....2|
|000026a0| 0d 23 64 65 66 69 6e 65 | 09 65 4e 6f 4d 65 6d 6f |.#define|.eNoMemo|
|000026b0| 72 79 09 09 09 09 33 0d | 23 64 65 66 69 6e 65 09 |ry....3.|#define.|
|000026c0| 65 4e 6f 53 70 61 63 65 | 43 75 74 09 09 09 09 34 |eNoSpace|Cut....4|
|000026d0| 0d 23 64 65 66 69 6e 65 | 09 65 4e 6f 43 75 74 09 |.#define|.eNoCut.|
|000026e0| 09 09 09 09 35 0d 23 64 | 65 66 69 6e 65 09 65 4e |....5.#d|efine.eN|
|000026f0| 6f 43 6f 70 79 09 09 09 | 09 09 36 0d 23 64 65 66 |oCopy...|..6.#def|
|00002700| 69 6e 65 09 65 45 78 63 | 65 65 64 50 61 73 74 65 |ine.eExc|eedPaste|
|00002710| 09 09 09 37 0d 23 64 65 | 66 69 6e 65 09 65 4e 6f |...7.#de|fine.eNo|
|00002720| 53 70 61 63 65 50 61 73 | 74 65 09 09 09 38 0d 23 |SpacePas|te...8.#|
|00002730| 64 65 66 69 6e 65 09 65 | 4e 6f 57 69 6e 64 6f 77 |define.e|NoWindow|
|00002740| 09 09 09 09 39 0d 23 64 | 65 66 69 6e 65 09 65 45 |....9.#d|efine.eE|
|00002750| 78 63 65 65 64 43 68 61 | 72 09 09 09 09 31 30 0d |xceedCha|r....10.|
|00002760| 23 64 65 66 69 6e 65 09 | 65 4e 6f 50 61 73 74 65 |#define.|eNoPaste|
|00002770| 09 09 09 09 31 31 0d 0d | 23 64 65 66 69 6e 65 09 |....11..|#define.|
|00002780| 72 4d 65 6e 75 42 61 72 | 09 31 32 38 09 09 09 09 |rMenuBar|.128....|
|00002790| 2f 2a 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 27 73 |/* appli|cation's|
|000027a0| 20 6d 65 6e 75 20 62 61 | 72 20 2a 2f 0d 23 64 65 | menu ba|r */.#de|
|000027b0| 66 69 6e 65 09 72 41 62 | 6f 75 74 41 6c 65 72 74 |fine.rAb|outAlert|
|000027c0| 09 31 32 38 09 09 09 09 | 2f 2a 20 61 62 6f 75 74 |.128....|/* about|
|000027d0| 20 61 6c 65 72 74 20 2a | 2f 0d 23 64 65 66 69 6e | alert *|/.#defin|
|000027e0| 65 09 72 55 73 65 72 41 | 6c 65 72 74 09 31 32 39 |e.rUserA|lert.129|
|000027f0| 09 09 09 09 2f 2a 20 75 | 73 65 72 20 65 72 72 6f |..../* u|ser erro|
|00002800| 72 20 61 6c 65 72 74 20 | 2a 2f 0d 23 64 65 66 69 |r alert |*/.#defi|
|00002810| 6e 65 09 72 44 6f 63 57 | 69 6e 64 6f 77 09 31 32 |ne.rDocW|indow.12|
|00002820| 38 09 09 09 09 2f 2a 20 | 61 70 70 6c 69 63 61 74 |8..../* |applicat|
|00002830| 69 6f 6e 27 73 20 77 69 | 6e 64 6f 77 20 2a 2f 0d |ion's wi|ndow */.|
|00002840| 23 64 65 66 69 6e 65 09 | 72 56 53 63 72 6f 6c 6c |#define.|rVScroll|
|00002850| 09 31 32 38 09 09 09 09 | 2f 2a 20 76 65 72 74 69 |.128....|/* verti|
|00002860| 63 61 6c 20 73 63 72 6f | 6c 6c 62 61 72 20 63 6f |cal scro|llbar co|
|00002870| 6e 74 72 6f 6c 20 2a 2f | 0d 23 64 65 66 69 6e 65 |ntrol */|.#define|
|00002880| 09 72 48 53 63 72 6f 6c | 6c 09 31 32 39 09 09 09 |.rHScrol|l.129...|
|00002890| 09 2f 2a 20 68 6f 72 69 | 7a 6f 6e 74 61 6c 20 73 |./* hori|zontal s|
|000028a0| 63 72 6f 6c 6c 62 61 72 | 20 63 6f 6e 74 72 6f 6c |crollbar| control|
|000028b0| 20 2a 2f 0d 23 64 65 66 | 69 6e 65 09 6b 45 72 72 | */.#def|ine.kErr|
|000028c0| 53 74 72 69 6e 67 73 09 | 31 32 38 09 09 09 09 2f |Strings.|128..../|
|000028d0| 2a 20 65 72 72 6f 72 20 | 73 74 72 69 6e 67 20 6c |* error |string l|
|000028e0| 69 73 74 20 2a 2f 0d 0d | 0d 0d 2f 2a 20 64 65 66 |ist */..|../* def|
|000028f0| 69 6e 65 73 20 66 6f 72 | 20 74 68 65 20 64 69 73 |ines for| the dis|
|00002900| 61 62 6c 65 2f 65 6e 61 | 62 6c 65 20 66 6c 61 67 |able/ena|ble flag|
|00002910| 73 20 2a 2f 0d 2f 2a 20 | 75 73 65 20 74 68 65 73 |s */./* |use thes|
|00002920| 65 20 66 6f 72 20 65 61 | 73 69 65 72 20 72 65 61 |e for ea|sier rea|
|00002930| 64 69 6e 67 09 09 09 2a | 2f 0d 0d 23 64 65 66 69 |ding...*|/..#defi|
|00002940| 6e 65 20 41 6c 6c 49 74 | 65 6d 73 09 30 62 31 31 |ne AllIt|ems.0b11|
|00002950| 31 31 31 31 31 31 31 31 | 31 31 31 31 31 31 31 31 |11111111|11111111|
|00002960| 31 31 31 31 31 31 31 31 | 31 31 31 31 31 0d 23 64 |11111111|11111.#d|
|00002970| 65 66 69 6e 65 20 4e 6f | 49 74 65 6d 73 09 09 30 |efine No|Items..0|
|00002980| 62 30 30 30 30 30 30 30 | 30 30 30 30 30 30 30 30 |b0000000|00000000|
|00002990| 30 30 30 30 30 30 30 30 | 30 30 30 30 30 30 30 30 |00000000|00000000|
|000029a0| 09 0d 23 64 65 66 69 6e | 65 20 4d 65 6e 75 49 74 |..#defin|e MenuIt|
|000029b0| 65 6d 32 09 30 62 30 30 | 30 30 30 30 30 30 30 30 |em2.0b00|00000000|
|000029c0| 30 30 30 30 30 30 30 30 | 30 30 30 30 30 30 30 30 |00000000|00000000|
|000029d0| 30 30 30 31 30 09 0d 23 | 64 65 66 69 6e 65 20 4d |00010..#|define M|
|000029e0| 65 6e 75 49 74 65 6d 31 | 32 09 30 62 30 30 30 30 |enuItem1|2.0b0000|
|000029f0| 30 30 30 30 30 30 30 30 | 30 30 30 30 30 30 30 31 |00000000|00000001|
|00002a00| 30 30 30 30 30 30 30 30 | 30 30 30 09 0d 0d 00 00 |00000000|000.....|
|00002a10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a80| 00 00 01 00 00 00 01 1d | 00 00 00 1d 00 00 00 1e |........|........|
|00002a90| 80 05 43 6c 6f 73 65 00 | 00 00 54 00 04 00 00 00 |..Close.|..T.....|
|00002aa0| 00 00 45 00 10 00 59 00 | 59 04 03 59 65 73 00 00 |..E...Y.|Y..Yes..|
|00002ab0| 0f 54 45 53 74 79 6c 65 | 53 61 6d 70 6c 65 2e 68 |.TEStyle|Sample.h|
|00002ac0| 02 00 00 00 54 45 58 54 | 4d 50 53 20 01 00 00 00 |....TEXT|MPS ....|
|00002ad0| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 00 00 c0 |..TEXTMP|S ......|
|00002ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002af0| 00 00 a1 4b 04 00 00 00 | 29 8e 00 00 01 3b 00 00 |...K....|)....;..|
|00002b00| 00 00 00 00 00 00 81 04 | 4e 4f 54 45 00 00 00 3c |........|NOTE...<|
|00002b10| 00 03 00 00 00 00 00 68 | 01 20 00 7c 01 71 04 02 |.......h|. .|.q..|
|00002b20| 4f 4b 00 00 00 00 00 b0 | 00 10 00 c0 00 72 88 00 |OK......|.....r..|
|00002b30| 00 00 00 00 00 0c 00 0a | 00 5c 01 72 88 00 00 00 |........|.\.r....|
|00002b40| 00 00 00 b0 00 78 00 c0 | 00 da 88 00 00 00 00 1c |.....x..|........|
|00002b50| 00 40 00 40 00 9a 01 c4 | 00 01 01 00 00 00 00 00 |.@.@....|........|
|00002b60| 00 00 00 82 07 43 6f 6e | 66 69 72 6d 00 00 00 34 |.....Con|firm...4|
|00002b70| 00 02 00 00 00 00 00 40 | 00 08 00 54 00 51 04 02 |.......@|...T.Q..|
|00002b80| 00 00 00 19 03 00 80 00 | 00 00 03 33 2e 30 0e 4d |........|...3.0.M|
|00002b90| 50 57 20 50 61 73 63 61 | 6c 20 33 2e 30 00 00 01 |PW Pasca|l 3.0...|
|00002ba0| 00 00 00 01 1d 00 00 00 | 1d 00 00 00 1e 00 1b 5f |........|......._|
|00002bb0| 08 0c 20 00 00 00 1c 00 | 1e ff ff 00 00 00 00 00 |.. .....|........|
|00002bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+